package com.atguigu.spzx.cart.client.fallback;

import com.atguigu.spzx.cart.client.feign.CartFeignClient;
import com.atguigu.spzx.model.common.Result;
import com.atguigu.spzx.model.entity.h5.CartInfo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/20
 * description：
 */
@Component
public class CartFallback implements CartFeignClient {
    @Override
    public Result<List<CartInfo>> getCheckedList() {
        System.out.println("降级方法1");
        return null;
    }

    @Override
    public Result deleteChecked() {
        System.out.println("降级方法2");
        return null;
    }
}
